fix namespace

fix namespace
remove some warnings