modifying model to support spatial field
adding spatial settings