chg: recognize url & profile handling

- fixed recognize url
- added a more convenient handling of string profile_names
- style cleanups.