extracted existing code into gem, everything working as expected. Next : tests and some simple config