major refactor instead of using simpleframework servlet api will be used