added getFormData method to public interface