add control on readOnly cases
add license where it was still missing