using as module, fixes #16