fix requires
remove json handler
refactor
add comments
remove value null check before update