working on update funciton + optional id param for cli