added start and emulate functions