seperated resources from code