implemented framework for file handlers
removed redundant (object)s