move install / remove / update functions into separate .c files