added logging and debugging library