finish writing the errhandle, now need to work on the rhelper.js for routing fun generation