check fork mode