usee App class for master and slave