added nicer loggin viewing to all functions