set up the environment and trigger-error