fixing deployment functionality