fixing some issues with hasty code editing last night