fetching rows with relseaing resources applied, to be refactored!