check for existing profile (fixes #466)