fixing params and std::placeholders bugs