work-in-progress convolutional networks refactoring