Remake PMAB module
bug fixes