handle external declarations