implemented transfering heads, needs testing, removed target dir