add pending and functions modules