Partial implementation of -integrateDirectlyToFile function...
fixing merge mess