exception readint and tidy stuff