added support for named scale items

Please revise this and make sure it works, I've done what I can but my tiredness may be getting the better of me