simple state simulation library for the cep