revamped golf to use stdio