C: initial setup