removed logging decorator, half fixed logging, needs level to be set