You will need to have a specific agreement regarding the publication of data from the senior investigator's project, including such details as whether he or she expects to be the first author listed in the credits (this is still true in some circles), even if you do all the work!