replace single script producer by a collection
error handler for rule engine + bug fixes