add throw declarations