added emulating script