added logging in resource classes