setting box type, handling dependencies