allow support for passing in resources to constructor