decouple lib from sinatra