testing detached head mode