did some debugging.. made buildOPACLink safer WRT array params