I am a international student in a ivy league school under J1 visa ( i can work only in school). I am now working as a researcher after I got the degree. I did sign the contract that I will work for 2 years with funding. The contract said that I will work mainly for one particular project but I also have work with any other works that the school want too.
My adviser has two funding project in his hand. One is a cellphone project and another one is a Darpa project. In the beginning, I worked with a cellphone project. This project is something plan to be commercialized and funding by private investors. There were two people mainly working on this cellphone project, me and my friend. We both have separated funding from different sources to work on this project. After I had finish the project ( 6 months), I was moved to work in the Darpa project, with another team. My friend who I worked with in a cellphone project is still working in the final part and marketing it (also continue to find money from investors).
One day, my cellphone-project friend's funding were all gone ( he started this work one year before me). His fund is about two years and he cannot find the investors to put more money in his cellphone. Then this is my problem because I am not a main person in both the cellphone and the Darpa project. My adviser want to move my money to support my friend and want me to quit (because no need for my programming skill anymore, programming part is done). He started by telling me that I watched YouTube in the lab. (He did see me once that I listened to the music while I was programming). He told me that no one in the lab watch YouTube, everybody just read paper for relaxing. (All of my friends watch YouTube and Facebook, trust me). Then he continued with I am not eager to improve me code and make it faster. He told me that all PhD, researcher will eager to make it very fast. ( I programmed something is called SIFT and the speed is the best I can do, due to the nature of the algorithm ).. Anyway, 3 months ago he told me the speed is good enough for this work, that's why I didn't improve it. He told me that I have a problem in communication ( I asked him could you give me some examples about the communication problem, then he changed the topics).
Since I am holding J1 visa, If he kicked me out, I have to go back with nothing. I feel this is very unfair. When he asked me to work, it is very nice. However when I completed the work, he want to kick me out and get the money back. I have no idea what to do? What should I do after this? I feel really bad about my adviser.
PS: my professor is the member of the start-up-company of the cellphone project. but I am not, I am just a reseacher