fix namespace
more descriptive errors in closure