local costumizations for format detection