moved to filedef.h