implemented insert option in the cmdline interface