expose hostmask stuff in commands [Close #518]