modified entryPoint.py