handle packageversion edge cases