change bind function to return true/false on success/failure.