add functions for application support. Add infrastructure for testing
these functions.