detect old-mode correctly; -r implemented to delete packages