converted to a sinatra dir format