(bluefox) add memHeapUsed variable
(bluefox) fix error if no internet connection.