removed logging functions, do it yourself.