add factory mode to distinguish service or serviceTwo