removed fallback to name when neither sid nor id are given. Using name here makes no sense.