EXTREMEM CHANGES and bugfixes.  it still doesn't work properly