added boost detection and assert check