more work towards translating facility modules in c