cleanup of ptop command