added support for meta data and for related records