code cleanup, set default values for box/file