add better github pull request support
use constant for api root