fixes, added switchnramp~

switched to using abstractions for global arrays, fixes, added
switchnramp~
and I have to do this separately for some reason