update and cleanup profiles