fix challenge, sign_key, and layer_count