cleanup profile serialization a bit more