script interface for debug and reproduction