extract slave methods to modules