more work on sinatra interface