fix cycle- add media player init correction and log entries for file truncate