updated logging for better visibility of functions