different structure and usage of wg (thanks to tip from rog)