implementation of simulator things.
fix