fix types on wrapper functions