mangle
throw out entities code