fixing request intialization.
creating cleanup block which can be easily overridden by subclasses