refactor

#### done
* extract lambda stuff in module
* extract sqs stuff in module
* update tests
imo it's bes to use var _ = func