add missing functions.