allow server side to return a function instead of Promise