figure out ref name automatically instead of having to specify it [ci skip]