refactored to a generic post call in base class