implemented modules and functionality for branches and clients