mode should probably be 0600