cleanup and PATH config