cleanup
global directory
working resourcemanager