work-in-progress refactoring of convolutional networks