adding headless option and execmode
jpi is not the right extension