fail if wrong path to profile
merged with current github master