debug function fix
levels are now fetched... parsing still incomplete