removed log model dependence
moved to body-parser
renamed variables