std::bind, some tweaks