add writer mode