updated to unconnected io/multiple clk domains