adding server-side support for profiles