added (untested) code towards managing application