Added logging messages
cleaned up component path function via alex's email