base implementations for resource and command