.profile and warning fixes