Adds replace_placeholders, fixes file_add