more refactoring. added sinatra partial gem