further progress on basic rendering stuff. Removed CPHIntPool for now