creating table writer for plan files