remove module declaration definition and fixes binding resolution

follow up on the module syntax