replacing exec with file (otherwise it is executed every time)