compile resources