commented gp_api selective code