bad require
add json & some debugging