found bug... fix tomorrow when you have a brain