add module options parsing and some fall-through defaults