more logging
loads of bug fixes, ;ayer 1 appears to be working