bug fixing - anf parsing globals lightning