better handing of profile_d