correct signature and cast mountflags
remove get/setCapabilities helper (only one user left
move remaining helper class methods away