make sure to include function declarations from calldata.h