fixed sorting of lectures, implement P2P