adds function invocations to fetchAllUsers