fixed issue with functions that didn't pass the user object