fixed bugs stumbled upon during deployment on pre