split crypto box in separate file