add script as stand-alone
fixed encoding, fixed duplicate library link