added some more functions
added Exception if an invalid uid was given