remove unnecessary startup functions and variables