restrict access to flush method to prevent overwriting