improve init function names, improve defers
allow easy usage of console profiler by just changing a var to true