patch by smartassfox ;)