Save current changes, parser has gone a bit off the rails and is failing to detect some basic things such as ld (variable),a needs a total clean up and rethink before going much further as its almost unmanageable already.