some functions still cannot be captured