add stastd writer support