profile and log fixes