$id and ex functions is still needed