change some gems to runtime dependency
add minimum code for rack