use main instead of api for go dir