add renderer and fix resourcemanager