implemented read gapi functions