added getwritername to controllers