moved external api access to package pt.go2.external