added credit and log for .flat option