added res_subject resource child table (but no refactoring yet)