added trap command