refactoring user resources into user package