allow #method on resource