sample publishing, commands in thread with command disabling