added ability to put in extra fields into models