fix pinouts and timing