add PBResource
rename PBResource to PBGLObject