cordova lib link: made generic