Some misc hacks