general system fixes and mesh scaling