still working on receiver api and json logging, using decorators