add singleton resource manager
remove unused classes