quick fix for wifi connections. needs further review