improved halt cmd