add static sources and buffers, various bugfixes and accessors