removed logging and fixed version maching