added a simple pooling system. chips are pooled. more work on reset functions