almost finish em_smartconf