should not have overloaded that method
it works better now but the wait_ms is still wrong