lots of small fixes for field, event and a new lib_less module