restore entrypoint