fixed bug, refactoring, added offers parser