testing a module system. other misc improvements and additions