remove refs/ prefix from code