fix for id based functions
add #to_json to Relation
require Fork
fix
fix
fix
fix
fix
fix
fix
refactor
add NotFound error
add errors