fixed big/small temp and added csv switch support.