add declarations for some functions