don't run init_profile_dir twice