automated testing file started. various fixes and new problems introduced.