refactory to use sinergia/cli as base