handling ENTRYPOINT