clean up library parser