facilitate more powerful function expansion

facilitate more powerful function expansion