writing to file--pushing while it works