redesign sinatra env config
a little code change