making wx dep optional