adding resource-file code