added getter and setter support for models