fixes to get the module to work with foreman