fix admin code parsing