update to work with optional output css file