add support for private declarations