publish with auto-detect on