translate from sinatra version
merge with github init version