functional gateway for creating and using profiles