finish sim mode and testing #24