use enum for getSections

I realised that the getSections call was inconsistent with the other get Methods.  This should fix that.