better boolean handling add custom request headers