added base resource manager and debug window utility