moved restApi and shell classes