add -allow-external for pil