add option to use title as filename