move rpm specific logic to rpm stuffs