small fixes to frontier_based approach