finally fixed issue with boxfile creation