fixes for timing and strange characters