overwrites $profile file instead of concatenating content