trying to work without temporary files