added logging to id management