add gridDimX into interfaces, fix small bugs