added setters so resources in admin will work