detect namespaced ids, add option for normalizing ids