ffproxy code cleanup