make this work on my magit too