resolved todo
improved error color
improved constants access
fixed z level
improved error handling