fix deploy & added better error