implemented run command