more pyramid learning and fixes