Another option for gaining more i/o is MCP23S17 via SPI-port or SPI-bitbang. There are a number of convenient features, that can be utilized by the relevant init params, which help to eliminate external components and preserve real estate. Mark