updated data writer field to accept more methods