added utilities for resources
fixed validation errors