more robust asbool