added support for eager loading some relations as well as decoder function for attributes