make /pe al work
misc library and nested condition fixes