move scotty app into separate module