fleshed out wals functionality