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