extract common methods into Base module