add skipWs method