add storage functions and check the internet conexion