debug log improvements
debug, fixed version check