new syntax for defining resources