resolve all functions