first attempt at adding pipeline registers