allow passing args to resource constructors