add enabled attribute
add helper functions for getting fields