added Resource and ResourceLoader