add copyright/license header
configurable possibility of exceptions