added profile_start command
added profile_stop command
simplified and optimized creation of objects with bases