preliminarily completed:
logging functions
install functions