add basic function signature checking