improve scaffold
refactor
model __setattr__ check