remove compile-time dependency on resources