(+) implement callback to main thread

(:) the values are still wrong