adapt profile handling