Separate globals loading and path setup
Fixes to buffer getters/setters