fixed wifi errors, main updated