gapi setup