added locks to Entries and Funcs