switch to no_profile if no profile name is provided.