fixed bug (typeof a map), improved profiles