implemented atexec command