rework code a bit and die on a logic error
-rw-r--r-- .gitignore
-rw-r--r-- dist.ini
drwxr-xr-x lib
drwxr-xr-x t