refactor standard apt methods