changed logging functions. no more to_s function
updated for no more to_s and new logging