add first step (prepare root files) to common.py