alg/hostname added, compile error fixed, update