wstat finally implemented