created lib with get subnet