isolated namespace; extend function