implemented --kill option