basic implementation of add cmd
logging in add cmd