add head action server

from #41 (Repair from master branch to development)