better static resources support