all the code (some scratch) for the private side of the app..