merged in mat's changes which allow grid lines for all scales