fixing deployment bugs