structuring runtime files & c functions