add ref for g-commands