read format from configuration