working ttt on sinatra