encode added, and user cli input