add function / lambda prototypes to scope