guarding sample conf
some rafactor