main script is taken from src