add support for profiles and change rest port