fixed some missing definitions