export fixes, session variable debugging