fix client_lib + add --user-function to command line

might be a bit tricky to do arbitrary binary params via the command line.