factoring some functionality of adding sublime packages