better logging
correct version parsing