front end cleanup