fix bug and separate online/test config