using go runtime to improve performance