patched Sinatra
add rule key