make methods work for Sinatra (will make it agnostic later)