fixed client-side implementation of function registration