0.1.1.0: split main script into several subscripts