add resources.cpp