updated version and fixed some issues with error handling, logging