added debug flag to form plugin interface