added some missing functions