auto-compile resources